package com.itheima.dao;

import com.itheima.pojo.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import tk.mybatis.mapper.common.Mapper;

public interface UserMapper extends Mapper<User> {

    @Update("update t_user set pass_word = #{passWord} where uid = #{uid}")
    void resetUserPassword(@Param("uid") String uid, @Param("passWord") String passWord);

    @Update("update t_user set start_email_notification = 0 where uid = #{userUid}")
    void closeEmailNotification(String userUid);
}
